package teach.aistar.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import teach.aistar.model.entity.WebOrder;

import java.util.List;

public interface WebOrderMapper {
    @Select("select * from web_order where uName=#{value}")
    List<WebOrder> selectWebOrderAll(String uName);


    @Delete("delete from web_order where id = #{id}")
    int deleteById(Long id);

    @Update("update web_order set orderStatus='1' where orderNo=#{orderNo}")
    int update(String orderNo);
}
